import { http } from './request'

export default {
  DeviceStatusOptions(data: any) {
    //设备状态
    return http.request({
      url: '/api/DeviceStatus/Options',
      method: 'post',
      data: data,
    })
  },
  DeviceParamCreate(data: any) {
    //设备配置参数
    return http.request({
      url: '/api/DeviceParam/Create',
      method: 'post',
      data: data,
    })
  },
  DevicePagedList(data: any) {
    //设备列表
    return http.request({
      url: '/api/Device/PagedList',
      method: 'post',
      data: data,
    })
  },
  DeviceCreateDevice(data: any) {
    //设备新增
    return http.request({
      url: '/api/Device/CreateDevice',
      method: 'post',
      data: data,
    })
  },
  DeviceEditDeviceArgs(data: any) {
    //设备配置参数编辑
    return http.request({
      url: '/api/Device/EditDevice',
      method: 'post',
      data: data,
    })
  },

  DeviceFetchModel(data: any) {
    //设备详情
    return http.request({
      url: '/api/Device/FetchModel',
      method: 'post',
      data: data,
    })
  },
  DeviceDelete(data: any) {
    //设备删除
    return http.request({
      url: '/api/Device/Delete',
      method: 'post',
      data: data,
    })
  },
  CustomerCreateCustomer(data: any) {
    //新增客户
    return http.request({
      url: '/api/Customer/CreateCustomer',
      method: 'post',
      data: data,
    })
  },

  CustomerPagedList(data: any) {
    //客户列表
    return http.request({
      url: '/api/Customer/PagedList',
      method: 'post',
      data: data,
    })
  },
  CustomerOptions(data: any) {
    //客户下拉选项
    return http.request({
      url: '/api/Customer/Options',
      method: 'post',
      data: data,
    })
  },
  CustomerExport(data: any) {
    //客户导出
    return http.request({
      url: '/api/Customer/Export',
      method: 'post',
      data: data,
    })
  },

  CustomerCreate(data: any) {
    //客户新增
    return http.request({
      url: '/api/Customer/Create',
      method: 'post',
      data: data,
    })
  },
  CustomerFetchModel(data: any) {
    //客户详情
    return http.request({
      url: '/api/Customer/FetchModel',
      method: 'post',
      data: data,
    })
  },
  CustomerDelete(data: any) {
    //客户删除
    return http.request({
      url: '/api/Customer/Delete',
      method: 'post',
      data: data,
    })
  },
  CustomerUpdate(data: any) {
    //客户更新
    return http.request({
      url: '/api/Customer/Update',
      method: 'post',
      data: data,
    })
  },
  DealerPagedList(data: any) {
    //经销商列表
    return http.request({
      url: '/api/Dealer/PagedList',
      method: 'post',
      data: data,
    })
  },
  DealerOptions(data: any) {
    //经销商下拉选项
    return http.request({
      url: '/api/user/MyDealers',
      method: 'post',
      data: data,
    })
  },
  DealerExport(data: any) {
    //经销商导出
    return http.request({
      url: '/api/Dealer/Export',
      method: 'post',
      data: data,
    })
  },
  DealerCreate(data: any) {
    //经销商新增
    return http.request({
      url: '/api/Dealer/CreateDealer',
      method: 'post',
      data: data,
    })
  },
  DealerFetch(data: any) {
    //经销商详情
    return http.request({
      url: '/api/Dealer/Fetch',
      method: 'post',
      data: data,
    })
  },
  DealerFetchModel(data: any) {
    //经销商详情
    return http.request({
      url: '/api/Dealer/FetchModel',
      method: 'post',
      data: data,
    })
  },
  DealerDelete(data: any) {
    //经销商删除
    return http.request({
      url: '/api/Dealer/Delete',
      method: 'post',
      data: data,
    })
  },
  DealerUpdate(data: any) {
    //经销商更新
    return http.request({
      url: '/api/Dealer/UpdateDealer',
      method: 'post',
      data: data,
    })
  },
  CustomerTypePagedList(data: any) {
    //客户分类列表
    return http.request({
      url: '/api/CustomerType/PagedList',
      method: 'post',
      data: data,
    })
  },
  CustomerTypeOptions(data: any) {
    //客户分类下拉选项
    return http.request({
      url: '/api/CustomerType/Options',
      method: 'post',
      data: data,
    })
  },
  CustomerTypeExport(data: any) {
    //客户分类导出
    return http.request({
      url: '/api/CustomerType//Export',
      method: 'post',
      data: data,
    })
  },
  CustomerTypeCreate(data: any) {
    //客户分类新增
    return http.request({
      url: '/api/CustomerType/Create',
      method: 'post',
      data: data,
    })
  },
  CustomerTypeFetchModel(data: any) {
    //客户分类详情
    return http.request({
      url: '/api/CustomerType/FetchModel',
      method: 'post',
      data: data,
    })
  },
  CustomerTypeDelete(data: any) {
    //客户分类删除
    return http.request({
      url: '/api/CustomerType/Delete',
      method: 'post',
      data: data,
    })
  },
  CustomerTypeUpdate(data: any) {
    //客户分类更新
    return http.request({
      url: '/api/CustomerType/Update',
      method: 'post',
      data: data,
    })
  },
  CustomerStatusPagedList(data: any) {
    //客户状态列表
    return http.request({
      url: '/api/CustomerStatus/PagedList',
      method: 'post',
      data: data,
    })
  },
  CustomerStatusOptions(data: any) {
    //客户状态下拉选项
    return http.request({
      url: '/api/CustomerStatus/Options',
      method: 'post',
      data: data,
    })
  },
  CustomerStatusExport(data: any) {
    //客户状态导出
    return http.request({
      url: '/api/CustomerStatus/Export',
      method: 'post',
      data: data,
    })
  },
  CustomerStatusCreate(data: any) {
    //客户状态新增
    return http.request({
      url: '/api/CustomerStatus/Create',
      method: 'post',
      data: data,
    })
  },
  CustomerStatusFetchModel(data: any) {
    //客户状态详情
    return http.request({
      url: '/api/CustomerStatus/FetchModel',
      method: 'post',
      data: data,
    })
  },
  CustomerStatusDelete(data: any) {
    //客户状态删除
    return http.request({
      url: '/api/CustomerStatus/Delete',
      method: 'post',
      data: data,
    })
  },
  CustomerStatusUpdate(data: any) {
    //客户状态更新
    return http.request({
      url: '/api/CustomerStatus/Update',
      method: 'post',
      data: data,
    })
  },

  SystemLogPagedList(data: any) {
    //日志
    return http.request({
      url: '/api/SystemLog/PagedList',
      method: 'post',
      data: data,
    })
  },
  OrderContractPagedList(data: any) {
    //订单列表
    return http.request({
      url: '/api/OrderContract/PagedList',
      method: 'post',
      data: data,
    })
  },
  OrderContractOptions(data: any) {
    //订单下拉选项
    return http.request({
      url: '/api/OrderContract/Options',
      method: 'post',
      data: data,
    })
  },
  OrderContractExport(data: any) {
    //订单导出
    return http.request({
      url: '/api/OrderContract/Export',
      method: 'post',
      data: data,
    })
  },
  OrderContractCreate(data: any) {
    //订单新增
    return http.request({
      url: '/api/OrderContract/Create',
      method: 'post',
      data: data,
    })
  },
  OrderContractFetchModel(data: any) {
    //订单详情
    return http.request({
      url: '/api/OrderContract/FetchModel',
      method: 'post',
      data: data,
    })
  },
  OrderContractDelete(data: any) {
    //订单删除
    return http.request({
      url: '/api/OrderContract/Delete',
      method: 'post',
      data: data,
    })
  },
  OrderContractUpdate(data: any) {
    //订单更新
    return http.request({
      url: '/api/OrderContract/Update',
      method: 'post',
      data: data,
    })
  },
  OrderStatusPagedList(data: any) {
    //订单状态列表
    return http.request({
      url: '/api/OrderStatus/PagedList',
      method: 'post',
      data: data,
    })
  },
  OrderStatusOptions(data: any) {
    //订单状态下拉选项
    return http.request({
      url: '/api/OrderStatus/Options',
      method: 'post',
      data: data,
    })
  },
  OrderStatusExport(data: any) {
    //订单状态导出
    return http.request({
      url: '/api/OrderStatus/Export',
      method: 'post',
      data: data,
    })
  },
  OrderStatusCreate(data: any) {
    //订单状态新增
    return http.request({
      url: '/api/OrderStatus/Create',
      method: 'post',
      data: data,
    })
  },
  OrderStatusFetchModel(data: any) {
    //订单状态详情
    return http.request({
      url: '/api/OrderStatus/FetchModel',
      method: 'post',
      data: data,
    })
  },
  OrderStatusDelete(data: any) {
    //订单状态删除
    return http.request({
      url: '/api/OrderStatus/Delete',
      method: 'post',
      data: data,
    })
  },
  OrderStatusUpdate(data: any) {
    //订单状态更新
    return http.request({
      url: '/api/OrderStatus/Update',
      method: 'post',
      data: data,
    })
  },
  DealerContactsPagedList(data: any) {
    //经销商联系人列表
    return http.request({
      url: '/api/DealerContacts/PagedList',
      method: 'post',
      data: data,
    })
  },
  DealerContactsDelete(data: any) {
    //经销商联系人删除
    return http.request({
      url: '/api/DealerContacts/Delete',
      method: 'post',
      data: data,
    })
  },
  DealerUserPageList(data: any) {
    //经销商de账号列表
    return http.request({
      url: '/api/DealerUser/PagedList',
      method: 'post',
      data: data,
    })
  },
}
